<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="catalog" tagdir="/WEB-INF/tags/catalog"%>
<head>
	<script type="text/javascript"	src="${ctxPath}/scripts/probiz/product/unitiveBulkEditForm.js?rs=${appConfig.rs}"></script>
</head>
<probiz:pageHeading pageHeadingKey="unitiveBulkEdit.heading" />
<content tag="buttons">
	<probiz:iconBtn btnType="save" onclick="unitiveBulkEditSave();" />
 	<probiz:iconBtn btnType="back" url="${ctxPath}/product/prod.html" />	
</content>
<form method="post" id="productForm" name="productForm"	action="${ctxPath}/product/prod.html" onsubmit="return false;">
	<div>
		<div class="warning_msg">
			<p>
				<fmt:message key="unitiveBulkEdit.product.list">
					<fmt:param value="${fn:length(productList)}"></fmt:param>
				</fmt:message>	:
				<c:forEach items="${productList}" var="product" varStatus="status">
					${product.productName}
					<c:if test="${!status.last}">,
					</c:if>
					<input type="hidden" name="productIds" id="productIds"	value="${product.productId}" />
				</c:forEach>
				<br/>
			</p>
			<p><b><fmt:message key="unitiveBulkEdit.product.operation"/></b></p>
		</div>
		<br/>
	</div>
			
	
	<div class="top clearfix">
		<ul class="tab" id="productTab">
			<li id="productInfo-tab"  class="curr">
				<a href="#productInfo"><span><fmt:message key="product.tab.basis" /></span></a>
			</li>
			<li id="productSkuInfo-tab">
				<a href="#productSkuInfo"><span><fmt:message key="product.tab.sku" /></span></a>
			</li>

			<li id="descriptionInfo-tab"  >
				<a href="#descriptionInfo"><span><fmt:message key="product.tab.description" /></span></a>
			</li>
			<li id="productMediaInfo-tab">
				<a href="#productMediaInfo"><span><fmt:message key="product.tab.media" /></span> </a>
			</li>
			<li id="seoInfo-tab">
				<a href="#seoInfo"><span><fmt:message key="product.tab.seo" /></span> </a>
			</li>

		</ul>
	</div>	
	<div class="modify">
		<%@ include file="./include/unitiveBulkEditFormBasicInfo.jsp"%>
		<%@ include file="./include/unitiveBulkEditFormSku.jsp"%>
		<%@ include file="./include/unitiveBulkEditFormDescription.jsp"%>
		<%@ include file="./include/unitiveBulkEditFormMedia.jsp"%>
		<%@ include file="./include/unitiveBulkEditFormSeo.jsp"%>
	</div>		
</form>

<div style="display:none">
	<probiz:ui_tabs tabsId="productTab" />	
	<catalog:productCategorySelector selectorId="productCategorySelector" callbackFunc="selectCategoryCallback"/>
	<probiz:plugin_newUpload fileInputId="productImageUpload" fileQueueId="imagefileQueue" fileDesc="JPG files" fileExt="*.jpg;*.JPG"	uploadCategory="product"  multi="true"  onComplete="uploadProductImagehandler"/>
	<probiz:plugin_newUpload fileInputId="accessoryUpload" fileQueueId="accessoryfileQueue" uploadCategory="product"  width="84" multi="true"  buttonImg="${ctxPath}/images/btn/add_attached_btn1.png" onComplete="uploadProductAccessoryhandler"/>
</div>

<script type="text/javascript">
$j(document).ready(function () {
	__FMTExtend = {
		productForm_media_title_tip:"<fmt:message key="productForm.media.title.tip"/>",
		productForm_signNotNegativeNum:"<fmt:message key="productForm.signNotNegativeNum"/>",
		productForm_signLastMaxQuantity:"<fmt:message key="productForm.signLastMaxQuantity"/>",
		productForm_incorrectMaxQuantity:"<fmt:message key="productForm.incorrectMaxQuantity"/>",
		bulkEdit_commit_success:"<fmt:message key="bulkEdit.commit_success"/>"
	};
	$j.extend(__FMT, __FMTExtend); 
});	

</script>